import { defineStore } from 'pinia'
import { ref } from 'vue'

export const companyMessageStore = defineStore(
    'companyMessage',
    () => {
        const companyMessage = ref('')
        const setCompanyMessage = (newCompanyMessage) => {
            companyMessage.value = newCompanyMessage
        }
        const removeCompanyMessage = () => {
            companyMessage.value = ''
        }
        return {
            companyMessage,
            setCompanyMessage,
            removeCompanyMessage
        }
    },
    {
        persist: true
    }
)
